Overview
| Comment: | tests: Don't copy testfile.bin & serialization.xml
Those are embedded now. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
782a1d577562ba76abb232202559e44e |
| User & Date: | js on 2022-08-07 13:40:58 |
| Other Links: | manifest | tags |
Context
|
2022-08-07
| ||
| 15:47 | OFSystemInfo: Use URLs for system directories (check-in: a5f2e3d0a5 user: js tags: trunk) | |
| 13:40 | tests: Don't copy testfile.bin & serialization.xml (check-in: 782a1d5775 user: js tags: trunk) | |
| 13:32 | utils: Properly uninstall objfw-embed (check-in: 057802f120 user: js tags: trunk) | |
Changes
Modified tests/Makefile from [d9b53558ee] to [1653b8f426].
| ︙ | ︙ | |||
162 163 164 165 166 167 168 |
fi
echo "Uploading files to iOS device ${IOS_HOST} at ${IOS_TMP}..."
ssh ${IOS_USER}@${IOS_HOST} \
'rm -fr ${IOS_TMP} && mkdir -p ${IOS_TMP}/plugin'
destname=libobjfw.${OBJFW_LIB_MAJOR}.dylib; \
scp -q ../src/libobjfw.dylib \
${IOS_USER}@${IOS_HOST}:${IOS_TMP}/$$destname
| | < < | 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
fi
echo "Uploading files to iOS device ${IOS_HOST} at ${IOS_TMP}..."
ssh ${IOS_USER}@${IOS_HOST} \
'rm -fr ${IOS_TMP} && mkdir -p ${IOS_TMP}/plugin'
destname=libobjfw.${OBJFW_LIB_MAJOR}.dylib; \
scp -q ../src/libobjfw.dylib \
${IOS_USER}@${IOS_HOST}:${IOS_TMP}/$$destname
scp -q tests testfile.txt testfile.ini \
${IOS_USER}@${IOS_HOST}:${IOS_TMP}/
scp -q plugin/TestPlugin.bundle \
${IOS_USER}@${IOS_HOST}:${IOS_TMP}/plugin/
echo "Running tests binary on iOS device ${IOS_HOST}..."
ssh ${IOS_USER}@${IOS_HOST} \
'cd ${IOS_TMP} && DYLD_LIBRARY_PATH=. ${WRAPPER} ./tests'
run-on-android: all
echo "Uploading files to Android device..."
if test -f ../src/libobjfw.so; then \
adb push ../src/libobjfw.so \
/data/local/tmp/objfw/libobjfw.so.${OBJFW_LIB_MAJOR}; \
fi
if test -f ../src/runtime/libobjfwrt.so; then \
adb push ../src/runtime/libobjfwrt.so \
/data/local/tmp/objfw/libobjfwrt.so.${OBJFWRT_LIB_MAJOR}; \
fi
adb push tests /data/local/tmp/objfw/tests
adb push testfile.txt /data/local/tmp/objfw/testfile.txt
adb push testfile.ini /data/local/tmp/objfw/testfile.ini
if test -f plugin/TestPlugin.so; then \
adb push plugin/TestPlugin.so \
/data/local/tmp/objfw/plugin/TestPlugin.so; \
fi
echo "Running tests binary on Android device..."
adb shell 'cd /data/local/tmp/objfw && LD_LIBRARY_PATH=. exec ${WRAPPER} ./tests'
|
| ︙ | ︙ | |||
209 210 211 212 213 214 215 |
${PROG_NOINST}.3dsx: ${PROG_NOINST}
3dsxtool $< $@
${PROG_NOINST}.arm9: ${PROG_NOINST}
arm-none-eabi-objcopy -O binary $< $@
| | < | | < | | 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
${PROG_NOINST}.3dsx: ${PROG_NOINST}
3dsxtool $< $@
${PROG_NOINST}.arm9: ${PROG_NOINST}
arm-none-eabi-objcopy -O binary $< $@
${PROG_NOINST}.nds: ${PROG_NOINST}.arm9 testfile.txt testfile.ini
rm -fr nds-data
mkdir -p nds-data
cp testfile.txt testfile.ini nds-data
ndstool -c $@ -9 ${PROG_NOINST} -d nds-data
rm -fr nds-data
${PROG_NOINST}.nro: ${PROG_NOINST} testfile.txt testfile.ini
rm -fr romfs
mkdir -p romfs
cp testfile.txt testfile.ini romfs
nacptool --create "ObjFW tests" "Jonathan Schleifer" \
"${PACKAGE_VERSION}" tests.nacp
elf2nro ${PROG_NOINST} $@ --nacp=tests.nacp --romfsdir=romfs
rm -fr romfs tests.nacp
${PROG_NOINST}.rpx: ${PROG_NOINST}
elf2rpl $< $@
CPPFLAGS += -I../src -I../src/exceptions -I../src/runtime -I.. -DSTDOUT
OBJCFLAGS_RuntimeARCTests.m = -fobjc-arc -fobjc-arc-exceptions
LIBS := ${TESTS_LIBS} ${LIBS}
LDFLAGS += ${MAP_LDFLAGS}
LD = ${OBJC}
|