18 Commits

Author SHA1 Message Date
Ikey Doherty bc5f756f33 tests: Ensure global cflags are used here in all cases
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2016-07-27 14:43:52 -07:00
Ikey Doherty 2c7ba9a934 Replace all instances of clr-cloud-init with micro-config-drive
The project has been renamed from clr-cloud-init to clearly communicate the
scope and target of the project. This change simply ensures all the source
files are now consistent in their agreement of the project name.

The (C) usage was also swapped for ©, simply because it is the proper symbol
and looks better.

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2016-07-27 14:43:52 -07:00
Auke Kok 774a37baaa Also remove curl tests.
Trivial: no longer build and link curl tests.
2016-06-09 13:07:25 -07:00
Ikey Doherty 1eeece519f Small build fixes (#19)
* Make -Werror a compile time option

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>

* Ensure test suite builds with -Wl,--as-needed

The linking order is highly important to libtool. Previously we would link
the COMMON_LDADD libraries to the binaries, however no symbols were used so
binutils linker wouldn't link the libraries involved. Next we would link
libtest.la, a static convenience library, and fail at dynamic linking due
to the symbols only being used in this later-added libraries.

The solution is to first link the convenience library, and then link to the
shared libraries, in order for -Wl,--as-needed behaviour to function correctly
and only link the absolutely required libraries.

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2016-06-08 11:30:57 -07:00
Julio Montes 73d1aeb4ea add outdir parameter to curl_fetch_file
files downloaded by curl can be saved in
a safe directory
2016-04-21 14:27:22 -05:00
Julio Montes 49e1556b81 fix write_file unit test 2016-04-15 10:41:35 -05:00
Julio Montes b59627e781 implement fbootcmd ccmodule
fbootcmd ccmodule will run system commands only
on first boot
2016-02-25 15:16:47 -06:00
Julio Montes a56e676b68 use async_task functions
add async_task to unit tests
2016-02-03 16:17:05 -06:00
Julio Montes c6ff7ef917 fix unit tests 2016-01-22 15:29:21 -06:00
Julio Montes b714226aea improve userdata unit test
improve lib unit test
2015-12-17 10:14:22 -06:00
Julio Montes 56378a90bb add unit test for userdata 2015-12-15 11:22:59 -06:00
Julio Montes 2a72c3561b remove warnings 2015-12-10 15:57:50 -06:00
Julio Montes f09a476836 add unit test for curl functions 2015-12-10 15:52:37 -06:00
Julio Montes 37543ba3c1 fix memory leak 2015-12-10 15:46:44 -06:00
Julio Montes dfdafde996 add unit test for write_file
add close file assertions
2015-12-10 14:40:56 -06:00
Julio Montes 335708e306 improve unit test for exec_task
remove temp files
2015-12-10 11:57:30 -06:00
Julio Montes 6b8758147c add unit test for chown_path 2015-11-27 10:40:08 -06:00
Julio Montes 7e64fbd558 add unit tests for lib
add exec_test unit test
add option --disable-tests do not build unit tests
2015-11-26 12:26:56 -06:00