~vojtech-horky/helenos/coastline-qemu

« back to all changes in this revision

Viewing changes to SDL/HARBOUR

  • Committer: Vojtech Horky
  • Date: 2017-08-18 19:40:42 UTC
  • Revision ID: vojtechhorky@users.sourceforge.net-20170818194042-gmmlils5022o6v67
SDL: build tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
shipfunnels=16
33
33
shiptugs="fdlibm"
34
34
 
35
 
SDL_PASSING_TESTS="graywin checkkeys testcursor"
36
 
 
37
35
build() {
38
36
        run tar xzf ${shipname}-${shipversion}.tar.gz
39
37
 
75
73
        run make install DESTDIR=$PWD/PKG       
76
74
        run cp -r PKG/include/* "$HSCT_INCLUDE_DIR/"
77
75
        run cp -r PKG/lib/* "$HSCT_LIB_DIR/"
78
 
        run mkdir -p "$HSCT_MY_DIR/app"
 
76
        run mkdir -p "$HSCT_MY_DIR/test/SDL"
79
77
        
80
78
        SDL_PREFIX=$PWD/PKG
81
79
        
100
98
        --disable-pulseaudio \
101
99
        --disable-joystick \
102
100
        --disable-cdrom \
 
101
        --without-x \
103
102
        --prefix="/"
104
103
    
105
 
    #run make -j${shipfunnels} $SDL_PASSING_TESTS
106
 
        #for TEST in $SDL_PASSING_TESTS; do
107
 
    #    run cp $TEST "$HSCT_MY_DIR/app/SDL-test-$TEST"
108
 
    #done    
 
104
    # Let's build all tests except the joystick one (see --disable-joystick)
 
105
    ALL_TESTS="`( echo 'mine:'; echo -e '\t@echo $(TARGETS)'; cat Makefile ) | make mine -f -`"
 
106
    for TEST in $ALL_TESTS; do
 
107
        [ $TEST = "testjoystick" ] && continue
 
108
        run make $TEST || exit 1
 
109
        run cp $TEST "$HSCT_MY_DIR/test/SDL/$TEST" || exit 1
 
110
    done
109
111
}