Skip to content

Commit

Permalink
try adding wunit to root test
Browse files Browse the repository at this point in the history
  • Loading branch information
V-FEXrt committed Oct 7, 2024
1 parent c27c059 commit 9994d99
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.wake
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def bootstrapTarget targetFn variant =
# Build all wake targets
def targets =
buildWake,
buildWakeUnit,
buildWakeBox,
buildFuseDaemon,
buildShim,
Expand Down
19 changes: 19 additions & 0 deletions tests/wunit/pass.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#! /bin/sh

set -e

function cleanup {
rm -rf job_cache_test
rm -rf .job_cache_test
rm -rf job_cache_test2
rm -rf .job_cache_test2
}
trap cleanup EXIT

WAKE_UNIT="${1}/wake-unit"

TERM=xterm-256color script --return --quiet -c "$WAKE_UNIT --no-color --tag threaded" /dev/null

# We run the tests *twice* so that shared caching can run without a clean slate
TERM=xterm-256color script --return --quiet -c "$WAKE_UNIT --no-color --tag threaded" /dev/null > /dev/null

Empty file added tests/wunit/stderr
Empty file.
108 changes: 108 additions & 0 deletions tests/wunit/stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
PASSED:
cli_options_basic
cli_options_shebang
cli_options_target
cli_options_timline
diff_add
diff_empty
diff_fuzz1
diff_fuzz2
diff_fuzz3
diff_id
diff_permute
diff_sub
diff_unit_diff
diff_unit_same
doc_basic
doc_geometry
doc_large
doc_undo
doc_unicode
filepath_dir_range_basic
filepath_dir_range_empty
filepath_make_canonical
filepath_range_basic
filepath_range_empty_node
filepath_range_fuzz_garbage
filepath_range_fuzz_nice
filepath_range_no_node
filepath_range_one_node
filepath_range_only_slash
filepath_range_two_slash
filepath_relative_to
iterator_split_by_empty
iterator_split_by_no_delim
iterator_split_by_nominal
iterator_split_by_only_delim
job_cache_basic_fuzz
job_cache_basic_par_fuzz
option_assign1
option_assign2
option_copy
option_destructs
option_forward
option_inplace
option_move
option_no_construct
option_none_is_none
option_some
result_assign1
result_assign2
result_copy
result_destructs
result_err_is_err
result_forward_error
result_forward_value
result_inplace_error
result_inplace_value
result_move
result_no_construct
result_value
sanity_check1
sanity_check2
shell_escape_empty_string
shell_escape_nominal
shell_escape_spaces
shell_escape_special
term_basic_background_colors
term_basic_background_colors_dumb
term_basic_bold_background_colors
term_basic_bold_background_colors_dumb
term_basic_bold_foreground_colors
term_basic_bold_foreground_colors_dumb
term_basic_controls
term_basic_controls_dumb
term_basic_foreground_colors
term_basic_foreground_colors_dumb
term_basic_ignores
term_basic_intense_background_colors
term_basic_intense_foreground_colors
term_basic_resets
term_basic_resets_dumb
term_dumb_fuzz
term_dumb_gcc_smoke_test
term_dumb_git_smoke_test
term_dumb_unicode_smoke_test
term_gcc_smoke_test
term_git_smoke_test
term_rich_background_colors
term_rich_background_colors_dumb
term_rich_foreground_colors
term_rich_foreground_colors_dumb
term_unicode_smoke_test
trie_basic
trie_basic_const
trie_char
trie_empty_seq
trie_empty_seq_const
trie_fuzz
trie_long_seq
trie_max
trie_max_const
trie_string
trie_unique
trie_unit_seqs
trie_unit_seqs_const


SUCCESS
1 change: 1 addition & 0 deletions wake.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ mkdir -p %{buildroot}/var/cache/wake
/usr/bin/wake-rsc-tool
/usr/bin/wake-format
/usr/bin/job-cache
/usr/bin/wake-unit
/usr/lib/wake
/usr/share/wake
%dir /var/cache/wake
Expand Down

0 comments on commit 9994d99

Please sign in to comment.