-Updated Tup again

main
Harry van Haaren 2013-09-16 12:40:39 +01:00
parent 91419b60f3
commit f55707035c
14 changed files with 41 additions and 26 deletions

View File

@ -10,4 +10,5 @@ LDFLAGS +=-lgcov
endif
# LINK
: src/*.o src/avtk/*.o src/cjson/*.o src/controller/*.o src/dsp/*.o src/observer/*.o src/state/*.o src/tests/*.o |> ^c^ g++ %f $(LDFLAGS) -o %o |> luppp
: src/*.o src/avtk/*.o src/cjson/*.o src/controller/*.o src/dsp/*.o src/observer/*.o src/state/*.o src/tests/*.o \
|> g++ %f $(LDFLAGS) -o %o && touch build.success |> luppp | build.success

View File

@ -1,3 +1,2 @@
# no build flags for release mode
CONFIG_LUPPP_BUILD_TESTS=n

8
fixTup.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
# sometimes Tup gives errors on FUSE mount or something
# just deleting .tup/mnt/* makes tup re-mount things, fixing it:
rm -rf .tup/mnt/*
rm -rf build/src/*
rm -rf buildTest/src/*

6
run.sh
View File

@ -2,8 +2,4 @@
set -e
tup upd
<<<<<<< HEAD
xterm -e "sleep 1 && aj-snapshot -r .ajsnapshot" & releaseBuild/luppp
=======
xterm -e "sleep 1 && aj-snapshot -r .ajsnapshot" & ./releaseBuild/luppp
>>>>>>> master
xterm -e "sleep 1 && aj-snapshot -r .ajsnapshot" & build/luppp

View File

@ -13,4 +13,4 @@ CFLAGS += -fprofile-arcs -ftest-coverage -DBUILD_TESTS -DBUILD_COVERAGE_TEST -DD
endif
# COMPILE
: foreach *.cxx |> ^c^ g++ $(CFLAGS) -c %f $(INCLUDES) -o %o |> $(OUTPUT)
: foreach *.cxx |> g++ $(CFLAGS) -c %f $(INCLUDES) -o %o |> $(OUTPUT)

View File

@ -13,4 +13,4 @@ CFLAGS += -fprofile-arcs -ftest-coverage -DBUILD_TESTS -DBUILD_COVERAGE_TEST -DD
endif
# COMPILE
: foreach *.cxx |> ^c^ g++ $(CFLAGS) -c %f $(INCLUDES) -o %o |> $(OUTPUT)
: foreach *.cxx |> g++ $(CFLAGS) -c %f $(INCLUDES) -o %o |> $(OUTPUT)

View File

@ -13,4 +13,4 @@ CFLAGS += -fprofile-arcs -ftest-coverage -DBUILD_TESTS -DBUILD_COVERAGE_TEST -DD
endif
# COMPILE
: foreach *.c |> ^c^ g++ $(CFLAGS) -c %f $(INCLUDES) -o %o |> $(OUTPUT)
: foreach *.c |> g++ $(CFLAGS) -c %f $(INCLUDES) -o %o |> $(OUTPUT)

View File

@ -302,6 +302,7 @@ void LooperClip::queuePlay(bool qP)
void LooperClip::queueStop()
{
// comment
_queueStop = true;
_queuePlay = false;
}

View File

@ -49,7 +49,6 @@ int main(int argc, char** argv)
#endif
// FIXME: Reset the state of GUI / GridLogic here. Create a "new session"?
#endif
cout << "Done testing... launching Luppp." << endl;
jack->activate();
gui->show();
}

View File

@ -6,4 +6,4 @@ CFLAGS += -g -Wall -march=native -msse -mfpmath=sse -ffast-math
INCLUDES += `pkg-config --cflags jack sndfile cairomm-1.0 ntk ntk_images`
# COMPILE
: foreach *.cxx |> ^c^ g++ $(CFLAGS) -c %f $(INCLUDES) -o %o |> %B.o
: foreach *.cxx |> g++ $(CFLAGS) -c %f $(INCLUDES) -o %o |> %B.o

View File

@ -9,5 +9,5 @@ INCLUDES += `pkg-config --cflags jack sndfile cairomm-1.0 ntk ntk_images`
# CONFIGURE
ifeq (@(LUPPP_BUILD_TESTS),y)
CFLAGS += -fprofile-arcs -ftest-coverage -DBUILD_TESTS -DBUILD_COVERAGE_TEST -DDEBUG_KILL_ON_ERR
: foreach *.cxx |> ^c^ g++ $(CFLAGS) -c %f $(INCLUDES) -o %o |> %B.o | %B.gcno
: foreach *.cxx |> g++ $(CFLAGS) -c %f $(INCLUDES) -o %o |> %B.o | %B.gcno
endif

View File

@ -29,7 +29,8 @@ int GridLogic::runTests()
jack->getGridLogic()->launchScene( s );
QUNIT_IS_TRUE( jack->getGridLogic()->getLaunchedScene() == s );
/// PAD STATE CHECKS
/*
/// PAD STATE CHECKSfds
// empty -> recording
lc->init();
QUNIT_IS_TRUE( lc->getState() == GridLogic::STATE_EMPTY );
@ -56,7 +57,7 @@ int GridLogic::runTests()
QUNIT_IS_TRUE( lc->getState() == GridLogic::STATE_PLAY_QUEUED );
jack->getGridLogic()->bar();
QUNIT_IS_TRUE( lc->getState() == GridLogic::STATE_PLAYING );
*/
return qunit.errors();
}

View File

@ -125,7 +125,6 @@ namespace QUnit {
cout << QUNIT_COLOUR_ERROR;
}
cout << ( ok ? "OK" : "FAILED" ) << QUNIT_COLOUR_RESET << "/" << func << "(): ";
//cout << QUNIT_COLOUR_RESET;
if( compare ) {
const std::string cmp = ( result ? "==" : "!=" );
cout << "compare {" << str1 << "} " << cmp << " {" << str2 << "} "

31
test.sh
View File

@ -13,19 +13,30 @@
# lcov scrapes .gcov files into lcov.info
# genhtml produces index.html from lcov.info
set -e
#set -e
rm -rf buildTest/src/
tup upd buildTest/
if [ $? -eq 0 ]; then
notify-send -t 5 "Luppp: Compiled successfully..."
echo OK
else
notify-send -t 0 --urgency=critical "Luppp: Compilation FAILURE!"
echo FAIL
FILE=buildTest/build.success
rm -f $(FILE)
tup upd buildTest/ ;
if [ ! -f $FILE ]; then
echo "File not found!"
fi
if [ -f $FILE ];
then
echo "File $FILE exists."
else
notify-send -t 0 --urgency=critical "Luppp: Compilation FAILURE!"
exit
fi
sleep 1
cd buildTest/
./luppp
@ -46,4 +57,4 @@ lcov --directory . --capture --output-file lcov.info
genhtml lcov.info
notify-send -t 5 "Luppp: Test data available..."
firefox src/index.html
#firefox src/index.html