Skip to content
Snippets Groups Projects
Select Git revision
  • d16ab09866dae02538903ec63b457ef92ad1fec5
  • master default protected
  • hughns/rust-send-to-device
  • hughns/rtc-to-device-key-distribution
  • develop
  • rav/token_encryption_improvements
  • actions/playwright-image-updates
  • staging
  • hs/timezone-publish-to-profile
  • renovate/all-minor-patch
  • florianduros/pinned-messages/unpin-timeline-event
  • florianduros/pinned-messages/link-timeline-fix
  • renovate/major-testing-library-monorepo
  • langleyd/new_memberlist_ux
  • dbkr/token_incorrect
  • renovate/lock-file-maintenance
  • florianduros/fix/spotlight-click
  • backport-12906-to-staging
  • rav/remove_dead_package_json_stuff
  • florianduros/pinned-messages/timeline-separator
  • dbkr/threepid_medium_unsupported
  • v3.109.0
  • v3.109.0-rc.0
  • v3.108.0
  • v3.108.0-rc.0
  • v3.107.0
  • v3.106.0
  • v3.106.0-rc.1
  • v3.106.0-rc.0
  • v3.105.1
  • v3.105.0
  • v3.104.0
  • v3.104.0-rc.1
  • v3.104.0-rc.0
  • v3.103.0
  • v3.103.0-rc.1
  • v3.103.0-rc.0
  • v3.102.0
  • v3.102.0-rc.1
  • v3.102.0-rc.0
  • v3.101.0
41 results

1sec.ogg

Blame
  • test.sh 862 B
    #!/usr/bin/env bash
    set -e
    # only exit with zero if all commands of the pipeline exit successfully
    set -o pipefail
    
    # Make sure to use project tooling
    PATH="$(pwd)/tmp/bin:${PATH}"
    TESTFILE="$(pwd)/tmp/test.jsonnet"
    mkdir -p "$(pwd)/tmp"
    
    for i in examples/jsonnet-snippets/*.jsonnet; do
        [ -f "$i" ] || break
        echo "Testing: ${i}"
        echo ""
        fileContent=$(<"$i")
        snippet="local kp = $fileContent;
    
    $(<examples/jsonnet-build-snippet/build-snippet.jsonnet)"
        echo "${snippet}" > "${TESTFILE}"
        echo "\`\`\`"
        echo "${snippet}"
        echo "\`\`\`"
        echo ""
        jsonnet -J vendor "${TESTFILE}" > /dev/null
        rm -rf "${TESTFILE}"
    done
    
    for i in examples/*.jsonnet; do
        [ -f "$i" ] || break
        echo "Testing: ${i}"
        echo ""
        echo "\`\`\`"
        cat "${i}"
        echo "\`\`\`"
        echo ""
        jsonnet -J vendor "${i}" > /dev/null
    done