<commit_before>// Copyright 2016-2017 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

import (
	"testing"

	"github.com/u-root/u-root/pkg/testutil"
)

func TestDmesg(t *testing.T) {
	cmd := testutil.Command(t)
	out, err := cmd.CombinedOutput()
	if err != nil || len(out) == 0 {
		t.Fatalf("Error: %v, Output: %v", err, string(out))
	}
}

func TestMain(m *testing.M) {
	testutil.Run(m, main)<commit_msg>dmesg: Disable dmesg test<commit_after>// Copyright 2016-2017 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

import (
	"testing"

	"github.com/u-root/u-root/pkg/testutil"
)

// TODO(https://github.com/u-root/u-root/issues/1160): This test has been disabled
func testDmesg(t *testing.T) {
	cmd := testutil.Command(t)
	out, err := cmd.CombinedOutput()
	if err != nil || len(out) == 0 {
		t.Fatalf("Error: %v, Output: %v", err, string(out))
	}
}

func TestMain(m *testing.M) {
	testutil.Run(m, main)
{'fraction_non_alphanumeric': 0.15165031222123104, 'fraction_numerical': 0.019625334522747548, 'mean_word_length': 3.7142857142857144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7426594', 'n_tokens_mistral': 432, 'n_tokens_neox': 410, 'n_words': 122}