runtests.jl 524 Bytes
Newer Older
Marcus Greiff's avatar
Marcus Greiff committed
1 2
using LabConnections.BeagleBone

3
using Base.Test
4

5 6
# This flag is enabled if a dummy filesystem should be used for testing (for online testing)
# disabling the flag allows the BBB to be run in the loop, in this case blinking LEDS
Marcus Greiff's avatar
Marcus Greiff committed
7
RUNNING_TESTS = true
8

Marcus Greiff's avatar
Marcus Greiff committed
9
# Run tests
10
include("BeagleBone/SYS_LED_test.jl")
11 12
include("BeagleBone/GPIO_test.jl")
include("BeagleBone/PWM_test.jl")
Marcus Greiff's avatar
Marcus Greiff committed
13 14 15 16 17 18 19

# Remove the testfilesystem
try
    rm("$(pwd())/testfilesystem", recursive=true)
catch
    println("Warning. Could not remove the testfilesystem.")
end