Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ They test **everything**. They're a bit batsy about it.

See the [Jury Criteria](./jury/README.md) for the rules.

## Not Ready For Primetime

This directory contains screensavers that are not yet ready for general use.

They may be broken, incomplete, or just not up to the quality standards of the main gallery.

Feel free to experiment with them, but use them at your own risk!

## Library

The library is filled with stuff about visualizations and voices.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ teardown() {
[[ "$output" == *"Error: asciinema not found"* ]]
}

@test "smile-for-the-camera: exits if agg is not found" {
@test "smile-for-the-camera: warns if agg is not found" {
# asciinema is available, agg is not
touch "$BATS_TMPDIR/asciinema" && chmod +x "$BATS_TMPDIR/asciinema"

run "$SCRIPT"
[ "$status" -eq 1 ]
[[ "$output" == *"Error: agg not found"* ]]
[ "$status" -eq 0 ]
[[ "$output" == *"Warning: agg not found"* ]]
}

@test "smile-for-the-camera: creates cast and gif files" {
Expand Down
250 changes: 139 additions & 111 deletions jury/verdict.txt

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion spotlight/smile-for-the-camera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ main() {
# Record with asciinema
local raw_cast_file="$temp_dir/$name.raw.cast"
rm -f "$raw_cast_file"
asciinema rec --command="bash -c 'timeout 10s env SHELL=/bin/bash $run_script'" "$raw_cast_file"
asciinema rec --command="bash -c 'tput civis; timeout 10s env SHELL=/bin/bash $run_script'" "$raw_cast_file"

# Process the cast file with awk to remove startup artifacts
local cast_file="${output_path_base}.cast"
Expand Down
9 changes: 9 additions & 0 deletions spotlight/tour-the-gallery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ EOF
main() {
check_deps

# Make sure all cast files are up to date
local smile_script="spotlight/smile-for-the-camera.sh"
if [ -f "$smile_script" ]; then
echo "Running smile-for-the-camera.sh to create up-to-date cast files..."
bash "$smile_script"
else
echo "WARNING: $smile_script not found, using existing cast files."
fi

local gallery_dir="gallery"
local output_dir="."
local temp_dir
Expand Down
Loading