<commit_before>require_relative 'test_base'
require_relative 'os_helper'

class RunAlpineTest < TestBase

  include OsHelper

  def self.hex_prefix
    '3759D'
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  def self.os_test(hex_suffix, *lines, &test_block)
    alpine_lines = ['[Alpine]'] + lines
    test(hex_suffix+'0', *alpine_lines, &test_block)
    ubuntu_lines = ['[Ubuntu]'] + lines
    test(hex_suffix+'1', *ubuntu_lines, &test_block)
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  os_test '997',
  'container has access to cyber-dojo env-vars' do
    kata_id_env_vars_test
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  os_test '267',
  'all of the 64 avatar users already exist' do
    assert_avatar_users_exist
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  os_test '582',
  'has group used for dir/file ownership' do
    assert_group_exists
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  os_test '2A0',
  'new_avatar has HOME set off /home' do
    new_avatar_home_test
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  os_test '0C9',
  'new_avatar has its own sandbox with owner/group/permissions set' do
    new_avatar_sandbox_setup_test
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  os_test '1FB',
  'new_avatar has starting-files in its sandbox with owner/group/permissions set' do
    new_avatar_starting_files_test
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  os_test 'D7C',
  'is ulimited' do
    ulimit_test
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  os_test 'FEA',
  'test-event baseline speed' do
    baseline_speed_test
  end

end
<commit_msg>for now turn off speed-tests when running on Travis<commit_after>require_relative 'test_base'
require_relative 'os_helper'

class RunAlpineTest < TestBase

  include OsHelper

  def self.hex_prefix
    '3759D'
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  def self.os_test(hex_suffix, *lines, &test_block)
    alpine_lines = ['[Alpine]'] + lines
    test(hex_suffix+'0', *alpine_lines, &test_block)
    ubuntu_lines = ['[Ubuntu]'] + lines
    test(hex_suffix+'1', *ubuntu_lines, &test_block)
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  os_test '997',
  'container has access to cyber-dojo env-vars' do
    kata_id_env_vars_test
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  os_test '267',
  'all of the 64 avatar users already exist' do
    assert_avatar_users_exist
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  os_test '582',
  'has group used for dir/file ownership' do
    assert_group_exists
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  os_test '2A0',
  'new_avatar has HOME set off /home' do
    new_avatar_home_test
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  os_test '0C9',
  'new_avatar has its own sandbox with owner/group/permissions set' do
    new_avatar_sandbox_setup_test
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  os_test '1FB',
  'new_avatar has starting-files in its sandbox with owner/group/permissions set' do
    new_avatar_starting_files_test
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  os_test 'D7C',
  'is ulimited' do
    ulimit_test
  end

  # - - - - - - - - - - - - - - - - - - - - - - - - - -

  os_test 'FEA',
  'test-event baseline speed' do
    if ENV['TRAVIS'] != 'true'
      baseline_speed_test
    end
  end

end

{'fraction_non_alphanumeric': 0.19640348412475414, 'fraction_numerical': 0.012924978926664794, 'mean_word_length': 1.2952933591231464, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 72, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4110968', 'n_tokens_mistral': 1547, 'n_tokens_neox': 1457, 'n_words': 250}