This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-core/tests/auto/generatedefines.sh
2014-05-03 23:55:08 +02:00

20 lines
390 B
Bash
Executable File

#!/bin/bash
echo generating defines... $@
echo \#include \<QMetaType\> > testdefines.h
for i in $@; do
echo \#include \"${i,,}.h\" >> testdefines.h
done
echo >> testdefines.h
echo \#define REGISTER_METATYPES \\ >> testdefines.h
for i in $@; do
echo qRegisterMetaType\<$i\>\(\"$i\"\)\; \\ >> testdefines.h
done
echo >> testdefines.h
echo \#define TESTCASES \"$@\" >> testdefines.h