Skip to content

Commit

Permalink
Merge pull request #1412 from ejoerns/tap
Browse files Browse the repository at this point in the history
Use meson TAP protocol parser
  • Loading branch information
jluebbe committed May 10, 2024
2 parents fcfe28d + 7539cf6 commit 66988cd
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion qemu-test-init
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ if [ -n "$SERVICE" ]; then
rauc status mark-good
fi

if meson test -C $BUILD_DIR "$MESON_TEST"; then
if meson test -C $BUILD_DIR "$MESON_TEST" -v; then
touch qemu-test-ok
echo "RESULT: PASSED"
else
Expand Down
2 changes: 1 addition & 1 deletion test/bundle.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static void bundle_fixture_set_up(BundleFixture *fixture,
{
fixture->tmpdir = g_dir_make_tmp("rauc-XXXXXX", NULL);
g_assert_nonnull(fixture->tmpdir);
g_print("bundle tmpdir: %s\n", fixture->tmpdir);
g_test_message("bundle tmpdir: %s\n", fixture->tmpdir);
}

static void prepare_bundle(BundleFixture *fixture, gconstpointer user_data)
Expand Down
2 changes: 1 addition & 1 deletion test/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static void dm_fixture_set_up(DMFixture *fixture,
{
fixture->tmpdir = g_dir_make_tmp("rauc-XXXXXX", NULL);
g_assert_nonnull(fixture->tmpdir);
g_print("dm tmpdir: %s\n", fixture->tmpdir);
g_test_message("dm tmpdir: %s\n", fixture->tmpdir);
}

static void dm_fixture_tear_down(DMFixture *fixture,
Expand Down
2 changes: 1 addition & 1 deletion test/hash_index.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static void fixture_set_up(Fixture *fixture,
{
fixture->tmpdir = g_dir_make_tmp("rauc-XXXXXX", NULL);
g_assert_nonnull(fixture->tmpdir);
g_print("hash_index tmpdir: %s\n", fixture->tmpdir);
g_test_message("hash_index tmpdir: %s\n", fixture->tmpdir);
}

static void fixture_tear_down(Fixture *fixture,
Expand Down
2 changes: 1 addition & 1 deletion test/install.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ device=/path/to/prebootloader";

fixture->tmpdir = g_dir_make_tmp("rauc-XXXXXX", NULL);
g_assert_nonnull(fixture->tmpdir);
g_print("system conf tmpdir: %s\n", fixture->tmpdir);
g_test_message("system conf tmpdir: %s\n", fixture->tmpdir);

pathname = write_tmp_file(fixture->tmpdir, "system.conf", cfg_file, NULL);
g_assert_nonnull(pathname);
Expand Down
2 changes: 1 addition & 1 deletion test/install_fixtures.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void fixture_helper_fixture_set_up_system_user(gchar *tmpdir,
g_autofree gchar *capath = NULL;

g_assert_nonnull(tmpdir);
g_print("bundle tmpdir: %s\n", tmpdir);
g_test_message("bundle tmpdir: %s", tmpdir);

g_assert(test_mkdir_relative(tmpdir, "bin", 0777) == 0);
g_assert(test_mkdir_relative(tmpdir, "content", 0777) == 0);
Expand Down
1 change: 1 addition & 0 deletions test/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ foreach test_name : tests
exe,
is_parallel : false,
timeout : 240,
protocol: 'tap',
workdir : meson.source_root())
endforeach

Expand Down
2 changes: 1 addition & 1 deletion test/nbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static void nbd_fixture_set_up(NBDFixture *fixture, gconstpointer user_data)
{
fixture->tmpdir = g_dir_make_tmp("rauc-XXXXXX", NULL);
g_assert_nonnull(fixture->tmpdir);
g_print("tmpdir: %s\n", fixture->tmpdir);
g_test_message("tmpdir: %s\n", fixture->tmpdir);
}

static void nbd_fixture_tear_down(NBDFixture *fixture, gconstpointer user_data)
Expand Down
2 changes: 1 addition & 1 deletion test/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static void network_fixture_set_up(NetworkFixture *fixture,
{
fixture->tmpdir = g_dir_make_tmp("rauc-XXXXXX", NULL);
g_assert_nonnull(fixture->tmpdir);
g_print("network tmpdir: %s\n", fixture->tmpdir);
g_test_message("network tmpdir: %s\n", fixture->tmpdir);
}

static void network_fixture_tear_down(NetworkFixture *fixture,
Expand Down

0 comments on commit 66988cd

Please sign in to comment.