Skip to content

Commit

Permalink
Eliminate carving whole file chunks during tests
Browse files Browse the repository at this point in the history
    This is done with the below script and looking through the resulting git change.

    $ cat recreate_outputs.sh
    #!/bin/bash

    set -e

    cd tests/integration

    find -name __output__ | xargs rm -rf

    find -name __input__ |
        while read input; do
            (
            cd "$input"
            mkdir ../__output__
            cd ../__output__
            find ../__input__ -type f |
                while read fw; do
                    unblob --keep-extracted-chunks "$fw"
                done
            )
        done

    # empty, but extracted directories
    find -type d | rg __output__ |
        while read dir; do
            rmdir --ignore-fail-on-non-empty "$dir"
            if [ ! -d "$dir" ]; then
                mkdir "$dir"
                touch "$dir/.gitkeep"
            fi
        done

    git add .
  • Loading branch information
e3krisztian committed Apr 4, 2022
1 parent e9e7d66 commit dae1a1d
Show file tree
Hide file tree
Showing 772 changed files with 0 additions and 534 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit dae1a1d

Please sign in to comment.