Overview
Comment: | Add run-on-iphone target to tests for more comfortable testing. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
3a290a995176865de0d64ea0d2b519e4 |
User & Date: | js on 2009-11-29 03:03:01 |
Other Links: | manifest | tags |
Context
2009-11-29
| ||
11:49 | Let OF_BSWAP{16,32,64} automatically detect whether we swap a constant. check-in: f4d5af029a user: js tags: trunk | |
03:03 | Add run-on-iphone target to tests for more comfortable testing. check-in: 3a290a9951 user: js tags: trunk | |
02:33 | Add ARMv6 inline assembly. Tested on iPhone. check-in: e5d734d1a7 user: js tags: trunk | |
Changes
Modified tests/Makefile from [d9ee3333fe] to [f1f9fb013c].
︙ | ︙ | |||
13 14 15 16 17 18 19 20 21 | OFString.m \ OFTCPSocket.m \ OFThread.m \ OFXMLElement.m \ OFXMLParser.m \ main.m .PHONY: run run-tests run: all | > > > < | < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | OFString.m \ OFTCPSocket.m \ OFThread.m \ OFXMLElement.m \ OFXMLParser.m \ main.m IPHONE_USER = mobile IPHONE_TMP = /tmp/objfw-test .PHONY: run run-tests run: all if [ -z "${DONT_RUN_TESTS}" ]; then ${MAKE} ${MFLAGS} run-tests; fi run-tests: rm -f libobjfw.so.0 libobjfw.so.0.1 libobjfw.dll libobjfw.dylib if test -f ../src/libobjfw.so; then \ ln -s ../src/libobjfw.so libobjfw.so.0; \ ln -s ../src/libobjfw.so libobjfw.so.0.1; \ elif test -f ../src/libobjfw.so.0.1; then \ |
︙ | ︙ | |||
39 40 41 42 43 44 45 46 47 48 49 | fi LD_LIBRARY_PATH=.$${LD_LIBRARY_PATH+:}$$LD_LIBRARY_PATH \ DYLD_LIBRARY_PATH=.$${DYLD_LIBRARY_PATH+:}$$DYLD_LIBRARY_PATH \ ${TEST_LAUNCHER} ./${PROG_NOINST}; EXIT=$$?; \ rm -f libobjfw.so.0 libobjfw.so.0.1 libobjfw.dll libobjfw.dylib; \ exit $$EXIT include ../buildsys.mk CPPFLAGS += -I../src -I.. -DSTDOUT LIBS := -L../src -lobjfw ${LIBS} | > > > > > > > > > > > > > > > > | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | fi LD_LIBRARY_PATH=.$${LD_LIBRARY_PATH+:}$$LD_LIBRARY_PATH \ DYLD_LIBRARY_PATH=.$${DYLD_LIBRARY_PATH+:}$$DYLD_LIBRARY_PATH \ ${TEST_LAUNCHER} ./${PROG_NOINST}; EXIT=$$?; \ rm -f libobjfw.so.0 libobjfw.so.0.1 libobjfw.dll libobjfw.dylib; \ exit $$EXIT run-on-iphone: all if [ -z "${IPHONE_HOST}" ]; then \ echo "Please set IPHONE_HOST to the hostname of your iPhone!"; \ exit 1; \ fi echo "Uploading files to iPhone ${IPHONE_HOST} at ${IPHONE_TMP}..." ssh ${IPHONE_USER}@${IPHONE_HOST} \ 'rm -fr ${IPHONE_TMP} && mkdir -p ${IPHONE_TMP}/plugin' scp -q ../src/libobjfw.dylib tests testfile \ ${IPHONE_USER}@${IPHONE_HOST}:${IPHONE_TMP}/ scp -q plugin/TestPlugin.impl \ ${IPHONE_USER}@${IPHONE_HOST}:${IPHONE_TMP}/plugin/ echo "Signing and running tests binary on iPhone ${IPHONE_HOST}..." ssh ${IPHONE_USER}@${IPHONE_HOST} \ 'cd ${IPHONE_TMP} && ldid -S tests && ./tests' include ../buildsys.mk CPPFLAGS += -I../src -I.. -DSTDOUT LIBS := -L../src -lobjfw ${LIBS} |