Skip to content
Snippets Groups Projects
Commit 728b2523 authored by bbartels's avatar bbartels
Browse files

quad: run make deep-clean on ci test

- Add some prints to scripts to help with debugging
- Add sleep statements to ensure process spanws correctly
parent c123eeb9
No related branches found
No related tags found
No related merge requests found
......@@ -4,4 +4,4 @@ set -e
export PATH=/usr/local/bin:$PATH
# Quad
(cd quad && make test)
(cd quad && make deep-clean && make && make test)
......@@ -38,8 +38,8 @@ test: all
$(MAKE) -C src/queue test
$(MAKE) -C src/computation_graph test
$(MAKE) -C src/quad_app test
#ruby scripts/tests/test_safety_checks.rb
#ruby scripts/tests/test_unix_uart.rb
ruby scripts/tests/test_safety_checks.rb
ruby scripts/tests/test_unix_uart.rb
clean:
rm -rf $(INCDIR) $(LIBDIR) $(OUTDIR) $(EXEDIR)
......
......@@ -78,10 +78,14 @@ def check_led(on)
assert_equal(led, on)
end
puts("Setting up...")
script_dir = File.expand_path(File.dirname(__FILE__))
bin_dir = script_dir + "/../../bin/"
Dir.chdir(bin_dir)
sleep 1
# Start virtual quad
quad = Process.spawn("./virt-quad")
......@@ -92,8 +96,8 @@ sleep 1
#################
begin
puts("beginning tests")
puts("Beginning tests...")
# Set gravity
File.write(I2C_MPU_ACCEL_Z, -1 * GRAVITY)
......
......@@ -17,10 +17,14 @@ require 'test/unit/assertions'
require 'thread'
include Test::Unit::Assertions
puts("Setting up...")
script_dir = File.expand_path(File.dirname(__FILE__))
bin_dir = script_dir + "/../../bin/"
Dir.chdir(bin_dir)
sleep 1
# Start virtual quad
quad = Process.spawn("./virt-quad")
......@@ -32,6 +36,8 @@ sleep 1
begin
puts("Beginning tests...")
# Flip gear on
File.write(GEAR, GEAR_ON)
sleep 0.015
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment